package com.hornsun.data.dbo;

public class Permission {
    private Integer permissionGuid;

    private String name;

    private Integer sign;

    private Byte type;

    public Integer getPermissionGuid() {
        return permissionGuid;
    }

    public void setPermissionGuid(Integer permissionGuid) {
        this.permissionGuid = permissionGuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", permissionGuid=").append(permissionGuid);
        sb.append(", name=").append(name);
        sb.append(", sign=").append(sign);
        sb.append(", type=").append(type);
        sb.append("]");
        return sb.toString();
    }
}